// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
//时间插件
import moment from 'moment';
Vue.prototype.$moment = moment;




import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
import store from './store'

//导入异步AXIAOS
import axios from 'axios'

axios.defaults.baseURL='http://localhost:9090'
//把图片的服务器地址添加到Vue中
Vue.prototype.$imgHost="http://localhost:9090/file/"

axios.defaults.withCredentials=true
Vue.prototype.$axios=axios;


Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  
  axios,
  moment,
  components: { App },
  template: '<App/>'
})
